﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Logs
{
    public interface IDocument
    {
        /// <summary>
        /// 路径
        /// </summary>
        string Filepath { get;}

        /// <summary>
        /// 文件名
        /// </summary>
        string Filename { get;}

        /// <summary>
        /// 后缀
        /// </summary>
        string Postfix { get;}

        /// <summary>
        /// 节点
        /// </summary>
        IRecordCollection Records { get;}

        /// <summary>
        /// 结构序列化
        /// </summary>
        /// <returns></returns>
        string Serialize();

        /// <summary>
        /// 结构序列化
        /// </summary>
        /// <returns></returns>
        string Serialize(bool indent);
    }
}
